package cn.chencq.moudle.sys.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import cn.chencq.moudle.sys.entity.SysUser;

/**
 * 系统用户
 * 
 * @author chenchaoqun
 * @email ccq@chencq.cn
 * @date 2018-10-22 15:41:40
 */
@Mapper
public interface SysUserDao extends BaseDao<SysUser>{

	/**
	 * 查询用户的所有权限
	 * 
	 * @param userId
	 * @return
	 */
	List<String> queryAllPermsByUserId(Long userId);

	/**
	 * 查询用户的所有菜单ID
	 * 
	 * @param userId
	 * @return
	 */
	List<Long> queryAllMenuId(Long userId);

	SysUser selectByUserName(String username);

	int updatePassword(Map<String, Object> map);
}
